package co.yixiang.modules.shop.service.dto;

import co.yixiang.modules.shop.domain.YxUserAddress;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class PreOrderDto {


    /** 用户id */
    @ApiModelProperty(value = "用户id")
    @NotNull
    private Long uid;

    @ApiModelProperty(value = "默认地址信息")
    private YxUserAddress address;

    @ApiModelProperty(value = "商品列表信息")
    private List<OrderShopItemDto> orderShopItemDtos;

    /** 订单商品总数 */
    @ApiModelProperty(value = "订单商品总数")
    @NotNull
    private Integer totalNum = 0;


    /** 订单总价 */
    @ApiModelProperty(value = "订单总价")
    @NotNull
    private BigDecimal totalPrice = BigDecimal.valueOf(0);


    /** 邮费 */
    @ApiModelProperty(value = "总邮费")
    @NotNull
    private BigDecimal totalPostage= BigDecimal.valueOf(0);


    /** 实际支付金额 */
    @ApiModelProperty(value = "实际需要支付金额")
    @NotNull
    private BigDecimal payPrice = BigDecimal.valueOf(0);

    /** 抵扣金额 */
    @ApiModelProperty(value = "抵扣金额")
    @NotNull
    private BigDecimal deductionPrice= BigDecimal.valueOf(0);




}
